package org.jeecg.modules.demo.projectmanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.projectmanagement.entity.ProjectInfo;
import org.jeecg.modules.demo.projectmanagement.entity.ProjectManagement;

import java.util.List;
import java.util.Map;

/**
 * @Description: 项目管理
 * @Author: jeecg-boot
 * @Date: 2021-12-31
 * @Version: V1.0
 */
public interface ProjectManagementMapper extends BaseMapper<ProjectManagement> {
    /**
     * 根据分组id查询项目列表
     *
     * @param storeId
     * @param groupId
     * @return
     */
    List<ProjectInfo> getListByGroupId(@Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize, @Param("storeId") String storeId, @Param("groupId") String groupId);

    List<Map<String, Object>> serveList(@Param("storeId") String storeId, @Param("projectId") String projectId);

    List<Map<String, Object>> shopList(@Param("storeId") String storeId, @Param("projectId") String projectId);

    Integer getVolumeById(@Param("id") String id);

    void updateVolume(@Param("storeId") String storeId);

    List<ProjectManagement> listEx(@Param("storeId") String storeId, @Param("name") String name);

    List<Map<String, Object>> search(Map<String, Object> map);

}
